package com.wcl.demo.ui.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.wcl.demo.R;

/**
 * Created by dllo on 15/12/2.
 */
public class ChangeNoteBgActivity extends Activity implements View.OnClickListener {
    private Button chose_oneBtn,make_oneBtn;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_change_note_bg);
        initView();
    }

    private void initView() {
        chose_oneBtn= (Button) findViewById(R.id.chose_oneBtn);
        chose_oneBtn.setOnClickListener(this);
        make_oneBtn= (Button) findViewById(R.id.make_oneBtn);
        make_oneBtn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.make_oneBtn:
                Intent intent=new Intent(this,TakePhotoActivity.class);
                intent.putExtra("wayKey","note");
                startActivity(intent);
                finish();

                break;
            case R.id.chose_oneBtn:
                Intent intent_chosePhoto =new Intent(this, ChosePhotoActivity.class);
                intent_chosePhoto.putExtra("chosePicture_key","3");//调用选图的方法"1"
                startActivity(intent_chosePhoto);
                finish();

                break;
        }
    }
}
